import type { LoginLog } from '@vben/types';

import { requestClient } from '#/api/request';

export namespace LoginLogApi {
  /** 登录接口返回值 */
  export interface LoginLogResult {
    data: LoginLog[];
    total: number;
  }
}

/**
 * 获取登陆日志信息
 */
export async function getLoginLogApi() {
  return requestClient.get<LoginLogApi.LoginLogResult>('/login-log');
}
